package Student;

import java.util.Collection;

/**
 * @description: 学生类
 * @author: rock
 * @create:
 **/
public abstract class Student {
    private int xuehao;
    private int age;
    private String name;
    private String sex;

    public Student(int xuehao, int age, String name, String sex) {
        this.xuehao = xuehao;
        this.age = age;
        this.name = name;
        this.sex = sex;
    }
    public Student(){}

    public abstract double getGrade();
    public void show(){

        System.out.println("学号：" + xuehao + ",姓名: " + name + ",性别: " + sex + "，年龄：" + age + ",综合成绩：" + getGrade());
    }


}
